﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Templates_ProductItem_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
 <acms:JavascriptFile ID="JavascriptFile1" Path="~/Scripts/swfobject.js" runat="server" />
    <!--SWF OBJECT-->
    <script type="text/javascript">
        var hasFlash = false;
        var flashvars = { };
        var params = {
            menu: "false",
            scale: "noScale",
            allowFullscreen: "true",
            allowScriptAccess: "always",
            bgcolor: "#FFFFFF",
            wmode: "transparent"
        };
        var attributes = {
            id: "Systems"
        };
        swfobject.embedSWF("<%= GetFlash() %>", "<%=pnlItem.ClientID %>", "960px", "362px", "9.0.0", "../../Flash/expressInstall.swf", flashvars, params, attributes, outputStatus);

        function outputStatus(e) {
            if (e.success == true) {
                $('body').removeClass('noFlash')
                //alert("success" + e.success)
            } else { "fail" + e.success }
        }
</script>
<script>
    $(function() {
        $(".hotSpot").each(function() {
            var hotspot = parseInt($(this).css('top'), 10);
            if (hotspot > 150) {
                $(this).tooltip({ position: 'top left', relative: true, offset: [95, 10], effect: 'slide' })
            }
            else {
                $(this).tooltip({ position: 'bottom left', relative: true, offset: [-60, 10], effect: 'slide' })
            }
        })

        



        //        var $scrollables = $(".scrollable").scrollable({ vertical: true, mousewheel: true, circular: true});
        //        $scrollables.each(function() {
        //            var $itemsToClone = $(this).scrollable().getItems().slice(1);
        //            var $wrap = $(this).scrollable().getItemWrap();
        //            var clonedClass = $(this).scrollable().getConf().clonedClass;
        //            $itemsToClone.each(function() {
        //                $(this).clone(true).appendTo($wrap)
        //			.addClass(clonedClass + ' hacked-' + clonedClass);
        //            })
        //        })



    })
</script>
<script type="text/javascript">
    $(document).ready(function() {

        

        //FIND LI ASSOCIATED WITH PARENTS
        var pathArray = window.location.pathname.split('/');
        $('#navApplications li a').each(function(index) {
            aTxt = $(this).text();
            aTxt = aTxt.replace("/", "")
            for (var i = 0; i < pathArray.length; i++) {
                //alert(aTxt +":"+pathArray[i]+"="+aTxt == pathArray[i]);
                if (aTxt == pathArray[i]) {
                    $(this).parent().addClass("active");
                }
            }
        });

        //
        //        var vars = [], hash;
        //        var hashes = window.location.href.slice(window.location.pathname.indexOf('?') + 1).split('&');
        //
        $("ul.flowtabs").tabs(".flowpanes > div");
        var apiflowtabs = $("ul.flowtabs").data("tabs");
        apiflowtabs.onClick(function(index) {
            initjScrollPane();
        });

        //$(".scrollable").scrollable({ vertical: true, mousewheel: true });
        initTabScrollable()
    });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentTop" Runat="Server">
    
    <div id="top" style="position:relative" class="systemHolder">
        <div class="systemFlashPanels" style="position:relative; height:362px; width:960px">
            <div class="items">
                
                    <asp:PlaceHolder ID="phPopup1" runat="server">
                        <asp:HyperLink ID="lnk1" CssClass="hotSpot" runat="server" />
                        <div class="tooltip">
                            <h3><acms:TextContentControlDisplay ID="acmsTitle1" ControlName="Pop1_Title" runat="server" /></h3>
                            <acms:HtmlContentControlDisplay ID="acmsCopy1" ControlName="Pop1_Copy" CssClass="wrapper"  runat="server" />
                        </div>
                    </asp:PlaceHolder>         
                    <asp:PlaceHolder ID="phPopup2" runat="server">
                        <asp:HyperLink ID="lnk2" CssClass="hotSpot" runat="server" />
                        <div class="tooltip">
                            <h3><acms:TextContentControlDisplay ID="acmsTitle2" ControlName="Pop2_Title" runat="server" /></h3>
                            <acms:HtmlContentControlDisplay ID="acmsCopy2" ControlName="Pop2_Copy" CssClass="wrapper" runat="server" />
                        </div>
                    </asp:PlaceHolder>
                    <asp:PlaceHolder ID="phPopup3" runat="server">
                        <asp:HyperLink ID="lnk3" CssClass="hotSpot" runat="server" />
                        <div class="tooltip">
                            <h3><acms:TextContentControlDisplay ID="acmsTitle3" ControlName="Pop3_Title" runat="server" /></h3>
                            <acms:HtmlContentControlDisplay ID="acmsCopy3" ControlName="Pop3_Copy" CssClass="wrapper"  runat="server" />
                        </div>
                    </asp:PlaceHolder>
                    <asp:PlaceHolder ID="phPopup4" runat="server">
	                    <asp:HyperLink ID="lnk4" CssClass="hotSpot" runat="server" />
		                    <div class="tooltip">
			                    <h3><acms:TextContentControlDisplay ID="acmsTitle4" ControlName="Pop4_Title" runat="server" /></h3>
	                            <acms:HtmlContentControlDisplay ID="acmsCopy4" ControlName="Pop4_Copy" CssClass="wrapper" runat="server" />
		                    </div>
                    </asp:PlaceHolder>
                    <asp:PlaceHolder ID="phPopup5" runat="server">
	                    <asp:HyperLink ID="lnk5" CssClass="hotSpot" runat="server" />
		                    <div class="tooltip">
			                    <h3><acms:TextContentControlDisplay ID="acmsTitle5" ControlName="Pop5_Title" runat="server" /></h3>
	                                    <acms:HtmlContentControlDisplay ID="acmsCopy5" ControlName="Pop5_Copy" runat="server" CssClass="wrapper" />
		                    </div>
                    </asp:PlaceHolder>
            </div>
                            
            <asp:Panel runat="server" ID="pnlItem" CssClass="flashHolder"></asp:Panel>
            
        </div>
        
        <div id="subNav" style="" class="clearfix">
            <ul id="navApplications">
                <asp:PlaceHolder ID="phParentNav" runat="server">
                    <acms:SimpleRepeater ID="dlNavParent" DataSourceID="dsParent" AllowPaging="false" runat="server">
                        <ItemTemplate>
                            <li runat="server" id="navLi" class="parent" >
                                <asp:HyperLink ID="lnkNav" CssClass="navApplication" NavigateUrl="#" runat="server" />
                            </li>
                        </ItemTemplate>
                    </acms:SimpleRepeater>
                    
                </asp:PlaceHolder>
                
                <asp:PlaceHolder ID="phSiblingNav" runat="server">
                    <acms:SimpleRepeater ID="dlNavSiblings" DataSourceID="dsSibling" AllowPaging="false" runat="server">
                        <ItemTemplate>
                            <li runat="server" id="navLi" class="sibling" >
                                <asp:HyperLink ID="lnkNav" CssClass="navApplication" NavigateUrl="#" runat="server" />
                            </li>
                            
                        </ItemTemplate>
                    </acms:SimpleRepeater>
                    
                </asp:PlaceHolder>
            </ul>
            
            
            <ul id="navDetails">
                <asp:PlaceHolder ID="phProductSiblingNav" runat="server">
                    <acms:SimpleRepeater ID="dlProductNavSiblings" DataSourceID="dsSibling" AllowPaging="false" runat="server">
                        <ItemTemplate>
                            <li runat="server" id="navLi" >
                                <asp:HyperLink ID="lnkProductNavSibling" CssClass="navApplication" NavigateUrl="#" runat="server" />
                            </li>
                        </ItemTemplate>
                    </acms:SimpleRepeater>
                    
                    <%--<li><acms:PostLink ID="PostLink2" Path="~/Press-Area/Videos" runat="server" Text="Videos" /></li>--%>
                    <%--<li><acms:PostLink ID="PostLink3" Path="~/Contact/Support" runat="server" Text="Support" /></li>--%>
                    <li><acms:PostLink ID="PostLink1" Path="~/Download/Brochures" runat="server" Text="Brochures" /></li>
                </asp:PlaceHolder>
            </ul>
        </div>
        
        <acms:PostDataSource ID="dsSibling" runat="server" />
        <acms:PostDataSource ID="dsParent" runat="server" />
        
        <div id="pageTitle" class="clearfix">
            <h1><acms:PostDisplayName ID="PostDisplayName" runat="server" /></h1>
            <asp:HyperLink NavigateUrl="#" id="lnkMoreInfo" runat="server" href="#" class="moreInfo moreInfoOpen off" Text="More Info"/>
        </div>
    
    </div>

</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentBase" Runat="Server">

    <div id="base" class="clearfix">
    
        <acms:SimpleRepeater ID="rptTabs" runat="server">
            <ItemTemplate>
                <acms:SubTemplateLoader ID="tabs" TemplateFileName="Display" runat="server" />
            </ItemTemplate>
        </acms:SimpleRepeater>
      
        <a href="#" class="moreInfo moreInfoClose">Close</a>
    
    </div>
</asp:Content>

